package com.kinyx.framework.utils;

import org.junit.Assert;
import org.junit.Test;

import lombok.AllArgsConstructor;

@AllArgsConstructor
public class KStringUtils_Tester_uncapitalize {

	@Test
	public void test() {
		Assert.assertEquals(null, KStringUtils.uncapitalize(null));
		Assert.assertEquals(null, KStringUtils.uncapitalize("null"));

		Assert.assertEquals("", KStringUtils.uncapitalize(""));
		Assert.assertEquals(" ", KStringUtils.uncapitalize(" "));

		Assert.assertEquals(" null ", KStringUtils.uncapitalize(" null "));
		Assert.assertEquals("foo", KStringUtils.uncapitalize("foo"));
		Assert.assertEquals(" foo ", KStringUtils.uncapitalize(" foo "));
		Assert.assertEquals("foo", KStringUtils.uncapitalize("Foo"));
		Assert.assertEquals(" Foo ", KStringUtils.uncapitalize(" Foo "));
	}

}
